<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="SinkInfo!save.action" method="post" name="form" enctype="multipart/form-data">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <input type="hidden" name="model.room_id" value="<s:property value='model.room_id'/>"/>
  <input type="hidden" name="meter_id" value="<s:property value='meter_id'/>"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器编号：</th>
      <td width="81%"><input name="model.sink_no" type="text" class="webinput" size="5" dataType="Integer" msg="请用数字正确填写"  value="<s:property value='model.sink_no'/>"/>（户内散热器统一按右手原则编号，入户后，右手边的第一组散热器为1，下一组为2，......以此类推）</td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>是否参与分摊：</th>
      <td width="81%">
      	<select name="model.join_ft" dataType="Require" msg="请选择">
      		<option value="">请选择</option>
      		<option value="0" <s:if test="model.join_ft==0">selected="selected"</s:if>>参与分摊</option>
      		<option value="1" <s:if test="model.join_ft==1">selected="selected"</s:if>>不参与分摊</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器类型：</th>
      <td width="81%">
      	<select name="model.type" dataType="Require" msg="请选择">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.type==1">selected="selected"</s:if>>813</option>
      		<option value="2" <s:if test="model.type==2">selected="selected"</s:if>>非默认散热类型</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="19%" align="right">散热器品牌：</th>
      <td width="81%"><input name="model.brand" type="text" class="webinput" size="25" value="<s:property value='model.brand'/>"/></td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器高*宽*长*中心距：</th>
      <td width="81%">
      	<input name="model.sink_height" type="text" class="webinput" size="10" dataType="Ftdfnum" msg="请用数字正确填写"  value="<s:property value='model.sink_height'/>"/>mm×
      	<input name="model.sink_width" type="text" class="webinput" size="10" dataType="Ftdfnum" msg="请用数字正确填写"  value="<s:property value='model.sink_width'/>"/>mm×
      	<input name="model.sink_length" type="text" class="webinput" size="10" dataType="Ftdfnum" msg="请用数字正确填写"  value="<s:property value='model.sink_length'/>"/>mm×
      	<input name="model.sink_cen_dis" type="text" class="webinput" size="10" dataType="Ftdfnum" msg="请用数字正确填写"  value="<s:property value='model.sink_cen_dis'/>"/>mm
      </td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器每片计算功率：</th>
      <td width="81%"><input name="model.cal_power" type="text" class="webinput" size="25" dataType="Ftdfnum" msg="请用数字正确填写" value="<s:property value='model.cal_power'/>"/></td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器片数：</th>
      <td width="81%"><input name="model.piece_num" type="text" class="webinput" dataType="Integer" msg="请用数字正确填写"  size="25" value="<s:property value='model.piece_num'/>"/></td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>评价系数K：</th>
      <td width="81%"><input name="model.power_factor" type="text" class="webinput" size="25" dataType="Ftdfnum" msg="请用数字正确填写" value="<s:property value='model.power_factor'/>"/></td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器耦合修正系数Kc：</th>
      <td width="81%"><input name="model.couple_factor" type="text" class="webinput" size="25" dataType="Ftdfnum" msg="请用数字正确填写" value="<s:property value='model.couple_factor'/>"/></td>
    </tr>
    <tr>
      <th width="19%" align="right"><font color="red">*</font>散热器其他修正系数Kt：</th>
      <td width="81%"><input name="model.other_factor" type="text" class="webinput" size="25" readonly="readonly" value="<s:property value='model.other_factor'/>"/><font color="red">注：此处无需填写，后台会自动计算，具体值可在“查看”页面中显示</font></td>
    </tr>
    <tr>
      <th width="19%" align="right">是否有散热器罩：</th>
      <td width="81%">
      	<select name="model.has_cover">
      		<option value="">请选择</option>
      		<option value="0" <s:if test="model.has_cover==0">selected="selected"</s:if>>有散热器罩</option>
      		<option value="1" <s:if test="model.has_cover==1">selected="selected"</s:if>>没有散热器罩</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="19%" align="right">温控方式：</th>
      <td width="81%">
      	<select name="model.temp_control">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.temp_control==1">selected="selected"</s:if>>有</option>
      		<option value="2" <s:if test="model.temp_control==2">selected="selected"</s:if>>无</option>
		</select>
	 </td>
    </tr>
    <tr>
      <th width="19%" align="right">房间功能：</th>
      <td width="81%">
      	<select name="model.house_function">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.temp_contro==1">selected="selected"</s:if>>客厅</option>
      		<option value="2" <s:if test="model.temp_contro==2">selected="selected"</s:if>>卧室</option>
      		<option value="3" <s:if test="model.temp_contro==3">selected="selected"</s:if>>厨房</option>
      		<option value="2" <s:if test="model.temp_contro==4">selected="selected"</s:if>>卫生间</option>
      		<option value="3" <s:if test="model.temp_contro==5">selected="selected"</s:if>>其他</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="19%" align="right">安装照片：</th>
      <td width="81%">
      <c:if test="${not empty accessary}">
	    	<a href="${ctx}/${accessary.url }" target="_blank">${accessary.ac_sname }</a><br/>
	  </c:if>
      <input name="acc" type="file" class="webinput" size="25"/></td>
    </tr>
    <tr>
      <th width="19%" align="right">备注信息：</th>
      <td width="81%"><textarea id="textarea" name="model.demo" cols="60" rows="8"><s:property value='model.demo'/></textarea></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/commons/scripts/validator.js'></script> 
<script type="text/javascript">
$j(document).ready(function(){
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
